package xyz.xtt.schedule.service;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import xyz.xtt.schedule.entity.UserChainAccountEntity;
import xyz.xtt.schedule.mapper.user.UserChainAcountMapper;

@Service
public class UserChainAccountService extends ServiceImpl<UserChainAcountMapper, UserChainAccountEntity> {
	/**
	 * 根据用户id查询是否存在记录
	 */
	public UserChainAccountEntity findByAppUserId(String appUserId) {
		QueryWrapper<UserChainAccountEntity> queryWrapper = new QueryWrapper<>();
		queryWrapper.eq("app_user_id", appUserId);
		return baseMapper.selectOne(queryWrapper);
	}
}
